package sut.edu.zyp.dormitory.manage.repository;

import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import sut.edu.zyp.dormitory.manage.entity.PublicEntity;

@RepositoryRestResource(collectionResourceRel = "public", path = "public")
public interface PublicRepository extends PagingAndSortingRepository<PublicEntity, String> {

    PublicEntity findByName(String name);

}
